package com.jie.staservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author XieZhiJie
 * @create 2020-10-18 13:20
 */
@EnableScheduling  // 开启定时任务
@MapperScan("com.jie.staservice.mapper")
@EnableFeignClients     // 远程调用
@EnableDiscoveryClient  // 服务注册
@ComponentScan(basePackages = {"com.jie"})
@SpringBootApplication
public class StaApplication {
    public static void main(String[] args) {
        SpringApplication.run(StaApplication.class, args);
    }
}
